Description:The iftop command is a network monitoring utility that displays bandwidth usage on a specific network interface by host. It provides real-time information about network traffic, including the amount of data sent and received by each host. With iftop, you can monitor network traffic on your system and identify which hosts are consuming the most bandwidth.
Use case 1: Show the bandwidth usageCode:
sudo iftopMotivation:By using the command sudo iftop, you can quickly observe and analyze the network traffic on your system. This information is useful for network administrators or individuals who want to monitor their network usage.
Explanation:The sudo iftop command without any additional arguments will display the bandwidth usage on the default network interface. It provides real-time information such as the source and destination hosts, their IP addresses, and the amount of data transferred between them.
Example output:
192.168.1.100:42000=> 104.17.428.50:44336.5KB 42.5KB 239.255.255.250:1900 0B 10.6KB 104.17.428.50:44336.5KB 42.5KB 104.17.428.50:44336.5KB 42.5KB 104.17.428.50:44336.5KB 42.5KB 104.17.428.50:44336.5KB 42.5KB